// ui/admin-ui/src/api/coach.js
import service from '@/utils/request.js'
export default {
    list(query){ return service.get('/coach/list', { params: query }) },
    selectAll(){ return service.get('/coach/selectAll')},
    deleteById(id){ return service.delete(`/coach/deleteById/${id}`) },
    deleteAll(ids){ return service.delete(`/coach/deleteAll/${ids}`) },
    add(data){ return service.post('/coach/add', data) },
    selectById(id){ return service.get(`/coach/selectById/${id}`) },
    update(data){ return service.put('/coach/update', data) },
    updateStatus(id, status){ return service.put(`/coach/updateStatus/${id}/${status}`) },
    login(data){ return service.post('/coach/login', data) },
    // 获取当前登录教练的信息
    getCurrentCoachInfo(){ return service.get('/coach/info') }
}